home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / mtgrap1c / bugs.txt < prev    next >
Encoding:
Text File  |  1994-07-23  |  1.4 KB  |  67 lines

  1. Bugs
  2. ====
  3. 1. Most of the problems concern with the font and sprite routines.
  4. Initially, I had wanted my font/sprite struct to consist of only
  5. one structure instead of the present separate structure. For
  6. example, for the sprite struct was supposed to be like
  7.  
  8.  
  9. typedef struct {
  10.  
  11.  
  12.  
  13. } SPRITE;
  14.  
  15. typedef struct {
  16. .
  17. .
  18. .
  19.  
  20.   SPRITE **sprite;
  21. } SPRITEHEADER.
  22.  
  23. At least using this format, I need not have to worry about
  24. declaring an extern SPRITE_HEADER like what I am doing right
  25. now.. The problem is that I had some problems trying to allocate
  26. space for the structure.. and later, I similarly could not pass
  27. the structure out probably..
  28.  
  29. ie.e 
  30.  
  31. SPRITEHEADER *LoadSprite()
  32. {
  33.          SPRITEHEADER *header;
  34.  
  35.  
  36.     ....
  37.  
  38.     return header;
  39. }
  40.  
  41. in my external file, 
  42.  
  43.  
  44.     newheader = LoadSprite(..);
  45.  
  46. the header is passed properly but the header->sprite was not
  47. ok.. I don't know what's wrong.. but I have a guess that it is
  48. because of passing by reference/copy problem..I have a hard time
  49. trying to debug this and finally decided to give up... at least
  50. until I have a better understanding of the problem.. if anyone
  51. can offer their solutions, please let me know..:)
  52.  
  53. Other than this, I believe that there are a lot of other bugs
  54. but somehow I couldn't detect on my machine.. let me know if you
  55. got any bugs...:)
  56.  
  57.  
  58. For any enquires/bug reports, please email to
  59.  
  60.     chtay@iti.gov.sg
  61.  
  62.     
  63. Moebius
  64.  
  65.  
  66.          
  67.